/**
 * @Author: yqe@360shop.cn
 * @Date: 2019-11-15 14:25:55
 * @Last Modified by: yqe@360shop.cn
 * @Last Modified time: 2019-11-15 14:26:43
 */
import request from '@/utils/request'
/**
 * 验证身份证唯一性
 * @param {*} params
 */
export function doCheckCard(params) {
  return request({
    url: '/UserApi/checkCard',
    method: 'get',
    params
  })
}
/**
 * 请求代理商/订货商申请页面信息
 * @param {*} params
 */
export function dlsdhsRequest(params) {
  return request({
    url: '/UserApi/dlsApplyList',
    method: 'post',
    params
  })
}
/**
 * 提交代理商/订货商申请页面信息
 * @param {*} params
 */
export function doDlsApply(params) {
  return request({
    url: '/UserApi/dlsApply',
    method: 'post',
    params
  })
}
/**
 * 请求分销商申请页面信息
 * @param {*} params
 */
export function fxsRequest(params) {
  return request({
    url: '/AgentApi/agentMsg',
    method: 'post',
    params
  })
}
/**
 * 分销商申请提交申请
 * @param {*} data
 */
export function agentApply(data) {
  return request({
    url: '/AgentApi/agentApply',
    method: 'post',
    data
  })
}
/**
 * 请求供应商申请页面信息
 * @param {*} params
 */
export function gysdhsRequest(params) {
  return request({
    url: '/UserApi/applySupplierList',
    method: 'post',
    params
  })
}

/**
 * 供应商提交申请
 * @param {*} params
 */
export function applySupplier(data) {
  return request({
    url: '/UserApi/applySupplier',
    method: 'post',
    data
  })
}
/**
 * 请求门店申请页面信息
 * @param {*} params
 */
export function getStoreApplyList(params) {
  return request({
    url: '/UserApi/storeApplyList',
    method: 'post',
    params
  })
}
/**
 * 提交门店申请
 * @param {*} params
 */
export function doStoreApply(params) {
  return request({
    url: '/UserApi/storeApply',
    method: 'post',
    params
  })
}
